<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
    <title>新增部门</title>
    <jsp:include page="../../include/head.jsp"/>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">上级部门：</label>
                            <div class="col-sm-8">
                                <input id="pId" name="pId" value="${pId}"
                                       class="form-control hidden" type="text">
                            </div>
                            <div class="col-sm-8">
                                <input id="pName" name="pName" value="${pName}"
                                       class="form-control" type="text" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">部门名称：</label>
                            <div class="col-sm-8">
                                <input id="name" name="name" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">排序：</label>
                            <div class="col-sm-8">
                                <input id="sort" name="sort" class="form-control"
                                       type="text"
                                       onkeyup="this.value=this.value.replace(/[^0-9]/g,'')">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">状态：</label>
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input type="radio" name="status" value="1" checked/> 正常
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="status" value="0"/> 禁用
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<jsp:include page="../../include/footer.jsp"/>
<script type="text/javascript" src="app/resources/js/appjs/admin/dept/deptAdd.js">
</script>
</body>
</html>
